﻿namespace etracks.Web
{
    using etracks.EntityModels;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.ComponentModel.DataAnnotations;

    /// <summary>
    /// ViewModel used in ProjectController, Index action
    /// </summary>
    public class ProjectIndexViewModel
    {
        public int Projects { get; set; }
    }

    /// <summary>
    /// ViewModel used in ProjectController, List action
    /// </summary>
    public class ProjectListViewModel
    {
        public List<Project> ProjectList { get; set; }

        public ProjectListViewModel()
        {
            this.ProjectList = new List<Project>();
        }
    }

    /// <summary>
    /// ViewModel used in ProjectController, Search action
    /// </summary>
    public class ProjectSearchViewModel
    {
        public string Search_Term { get; set; }

        public List<Project> ProjectList { get; set; }

        public ProjectSearchViewModel()
        {
            this.ProjectList = new List<Project>();
        }
    }

    public class ProjectInputFormViewModel : Project
    {
        public List<ProjectType> ProjectTypeList { get; set; }
    }

    public class ProjectReadOnlyViewModel : Project
    {
        public string ProjectType { get; set; }

        public List<etracks.EntityModels.Environment> EnvironmentList { get; set; }

        public ProjectReadOnlyViewModel()
        {
            this.EnvironmentList = new List<EntityModels.Environment>();
        }
    }

}

